home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / etc / acpi / start.d / 10-save-dmidecode.sh next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  2006-10-15  |  675 b   |  13 lines

  1. #!/bin/sh
  2. # Paul Sladen, 2006-03-28
  3. # Save the 'dmidecode' data while we are running as root, so
  4. # that it can used later in '/usr/share/acpi-support/device-funcs'
  5. # which can be sourced by 'pmi' running as a user.
  6. #
  7. # Lets assume that this isn't particularly priviliged information...
  8.  
  9. dmidecode --string system-manufacturer|sed -e 's/ *$//' > /var/lib/acpi-support/system-manufacturer
  10. dmidecode --string system-product-name|sed -e 's/ *$//' > /var/lib/acpi-support/system-product-name
  11. dmidecode --string system-version     |sed -e 's/ *$//' > /var/lib/acpi-support/system-version
  12. dmidecode --string bios-version       |sed -e 's/ *$//' > /var/lib/acpi-support/bios-version
  13.